<%--
  Created by IntelliJ IDEA.
  User: fzy-2
  Date: 2021/4/18
  Time: 20:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<% String path = request.getContextPath(); %>
<html>
<head>
    <meta charset="utf-8">
    <title>上机考试系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="stylesheet" href="<%=path%>/css/styles.css" type="text/css"/>
    <script src="<%=path%>/js/utils.js" type="text/javascript"></script>





    <script type="text/javascript" src="<%=path%>/js/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="<%=path%>/js/jquery.ui.core.min.js?s2j=3.7.0"></script>
    <script type="text/javascript" src="<%=path%>/js/jquery.subscribe.min.js?s2j=3.7.0"></script>

    <script type="text/javascript" src="<%=path%>/js/jquery.struts2.min.js?s2j=3.7.0"></script>

    <script type="text/javascript">
        $(function() {
            jQuery.struts2_jquery.version="3.7.0";
            jQuery.scriptPath = "/exam/struts/";
            jQuery.ajaxSettings.traditional = true;

            jQuery.ajaxSetup ({
                cache: false
            });

            jQuery.struts2_jquery.require("js/struts2/jquery.ui.struts2.min.js?s2j=3.7.0");

        });
    </script>

    <link id="jquery_theme_link" rel="stylesheet" href="<%=path%>/css/jquery-ui.css?s2j=3.7.0" type="text/css"/>


    <!-- le styles -->
    <link href="<%=path%>/css/bootstrap.css" rel="stylesheet">
    <link href="<%=path%>/css/exam.css" rel="stylesheet">
    <style>
        body {
            padding-top: 60px;
            /* 60px to make the container go all the way to the bottom of the topbar */
        }
    </style>
    <link href="<%=path%>/css/bootstrap-responsive.css" rel="stylesheet">

    <!-- le html5 shim, for ie6-8 support of html5 elements -->
    <!--[if lt ie 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
</head>

<body>

<%@ include file="/WEB-INF/pages/Student/student_header.jsp"%>

<div class="container">
    <h1>
        <img src="<%=path%>/img/exam-student.png"  alt=""/><%=session.getAttribute("examname")%>上机考试中...
    </h1>


    <div class="container-fluid">
        <div class="row-fluid">
            <h4>已上传文件列表</h4>

            <table class="table table-striped table-bordered">
                <thead>
                <tr>
                    <th class="span4">文件名</th>
                    <th class="span4">文件大小</th>
                    <th class="span4">上传时间</th>
                </tr>
                </thead>
                <tbody>

                <tr>
                    <td>notes.txt</td>
                    <td>25075B</td>
                    <td>2021-4-18 20:44:14</td>
                </tr>

                </tbody>
            </table>
        </div>
        <div class="row-fluid">
            <h4>答案上传</h4>
            <form class="form-inline" action="${pageContext.request.contextPath}/uploadServlet?user=student&examname=<%=session.getAttribute("examname")%>" enctype="multipart/form-data" method="post">
                <input type="file" name="filename" />
                <input type="submit" class="btn btn-primary" value="上传" />
            </form>
        </div>
    </div>

</div>
<!-- /container -->
<!-- placed at the end of the document so the pages load faster -->
<script src="<%=path%>/js/bootstrap.min.js"></script>
</body>
</html>